#include<stdio.h>

int main(int argc, char* argv[]) {
	
	int c;
	puts("Press key...");
	while((c = getchar()) != 'q') {
		printf("key: %c\nvalue:%x",c,c);	
	}	
	return 0;
}

